package com.ruoyi.system.mapper;


import com.ruoyi.system.pojo.dto.UserRegisterDTO;
import com.ruoyi.system.pojo.entity.User;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Value;

import java.util.List;

public interface AgoniUserMapper {


    User selectByUsername(String username);

    void insertUser(User user);

    List<User> selectUserList();

    User selectUserById(Long publisherId);


    @Select("SELECT * FROM agoni_users WHERE id = #{userId}")
    User selectByUserId(long userId);

    int updateUser(User user);
}
